<?php
/**
 * This is areas/admin_dashboard template file. 
 *
 * @copyright     Copyright 2008-2010, LilCake.net
 * @link          http://lilcake.net LilCake.net
 * @package       lil
 * @subpackage    lil.views.areas
 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
 */
	$area_dashboard = array(
		'title_for_layout' => __d('lil', 'Welcome. What would you like to do?'),
		'pre' => '<div class="lil_panel_full">',
		'post' => '</div>',
		'panels' => array(
			'welcome' => array(
				'pre' => '<div id="AdminDashboard" class="no-margin"><ul class="actions">',
				'post' => '</ul></div>',
				'lines' => array(
					'area' => Configure::read('Lil.noAreas') === true ? null : array(
						'text'    => $this->Html->link(
							__d('lil', 'Change admin area'),
							array(
								'plugin'     => 'lil',
								'controller' => 'areas',
								'action'     => 'list',
								'admin'      => true
							)
						),
					),
					0 => Configure::read('Lil.noAreas') === true ? null : array(
						'text'    => '<hr />'
					),
					'preferences' => array(
						'text'    => $this->Html->link(
							__d('lil', 'Edit user profile and password'),
							array(
								'plugin'     => 'lil',
								'controller' => 'users',
								'action'     => 'properties',
								'admin'      => true
							),
							array(
								'class' => 'small'
							)
						),
					),
					'logout' => array(
						'text'    => $this->Html->link(
							__d('lil', 'Logout'),
							array(
								'plugin'     => 'lil',
								'controller' => 'users',
								'action'     => 'logout',
								'admin'      => false
							),
							array(
								'class' => 'small'
							)
						),
					),
				)
			),
		),
	);
	
	///////////////////////////////////////////////////////////////////////////////////////////////
	// call plugin handlers
	$area_dashboard = $this->callPluginHandlers('admin_dashboard', $area_dashboard);
	$this->Lil->panels($area_dashboard);